import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

import IndexLoyout from "../layout/IndexLaout.vue"
const routes = [
  {
    path: '/',
    name: 'IndexLoyout',
    component: IndexLoyout,
    children:[
      {
        path:'',
        name:"IndexPage",
        component: () => import("../views/IndexPage.vue")
      }
    ]
  },
  // {
  //   path: '/about',
  //   name: 'About',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: ")
  // }
]

const router = new VueRouter({
  routes
})

export default router
